#!/usr/bin/gnuplot

#set terminal post eps 24
set terminal post eps color 24 

# shuffle send bytes per machine 
set output "send.eps"
set ylabel "send bytes (MB)"
set xlabel "Machine ID"

plot "shuffle.dat" using 1:2  with impulses 

# shuffle receive bytes per machine 
set output "receive.eps"
set ylabel "receive bytes (MB)"
set xlabel "Machine ID"

plot "shuffle.dat" using 1:3  with impulses 

# Job View Graph 3
# shuffle bytes distribution on each machine
set output "shuffle.eps"
set ylabel "Shuffle bytes (MB)"
set xlabel "Machine ID"
set key inside top center horizontal

plot "shuffle.dat" using ($1-0.15):2 title "send" with impulses lt 1 linecolor 1 linewidth 5, \
	"" using ($1+0.15):3 title "receive" with impulses lt 1 linecolor 2 linewidth 5 
